package org.ushio.nchu_22201402.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.ushio.nchu_22201402.entity.Admin;
import org.ushio.common_module.entity.CSSCR;
import org.ushio.nchu_22201402.mapper.Admin_LoginMapper;
import org.ushio.nchu_22201402.mapper.CSSCRMapper;
import org.ushio.nchu_22201402.service.Admin_LoginService;
import org.ushio.nchu_22201402.service.Admin_UpdateSalaryService;

import javax.annotation.Resource;
import java.util.List;

@Service
public class Admin_UpdateSalaryServiceImpl extends ServiceImpl<CSSCRMapper, CSSCR> implements Admin_UpdateSalaryService {
    @Resource
    private CSSCRMapper csscrMapper;
    @Override
    public String UpdateSalaryRise(int Customer_Service_ID, double UpdateSalary) {
        csscrMapper.UpdateSalaryRise(Customer_Service_ID,UpdateSalary);
        return "success";
    }

    @Override
    public String UpdateSalaryDown(int Customer_Service_ID, double UpdateSalary) {
        csscrMapper.UpdateSalaryDown(Customer_Service_ID,UpdateSalary);
        return "success";
    }

    @Override
    public void RecordUpdateSalary(int Customer_Service_ID, double UpdateSalary, String ChangeTime) {
        csscrMapper.RecordUpdate(Customer_Service_ID,UpdateSalary,ChangeTime);
    }

    @Override
    public List<CSSCR> ListSalaryUpdate() {
        return csscrMapper.ListSalaryUpdate();
    }
}
